package com.zhiwang.xiaoqu.util;

import android.app.Activity;
import android.content.Context;
import android.view.inputmethod.InputMethodManager;

public class ImeUtil {

    public static void hideIme(Activity focusActivity) {

        InputMethodManager inputMethodService = (InputMethodManager) focusActivity.getSystemService(Context.INPUT_METHOD_SERVICE);
        inputMethodService.hideSoftInputFromWindow(focusActivity.getWindow().getDecorView().getWindowToken(), 0);

    }

}
